package com.lu.model;


import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.Date;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

@Data
@Accessors(chain = true)
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class Knowledge {

	//管理员标识
	private String adminId;
	//作者
	private String author;
	//来源
	private String form;

	//标题
	private String title;
	//概述
	private String outline;
	//内容
	private String content;
	//浏览量
	private long view;
	//状态
	private String status;
	//关键词
	private Set<String> keywords;
	//标签
	private Set<String> labels;
	//创建时间
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date createTime;
	//更新时间
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date updateTime;

}
